package com.it.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data

@TableName("t_comment")
public class Comment extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer commentId;

    private Integer userId;

    private String nickname;

    private Integer articleId;

    private Integer parentCommentId;

    private Integer parentUserId;

    private Integer level;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;
    private String content;

    private Integer replyCommentId;  // 被回复的评论id

    private Integer replyCommentUserId; // 被回复的
}
